

<a class="btn btn-info" href="{{URL::to('topics/create')}}">Create Topic</a>

<table class="table">
    
@foreach ($topics as $topic) 
<tr  id="topic{{$topic->id}}">
    <td>{{$topic->id}}</td>
    <td>{{$topic->title}}</td>
    <td>
        <a class="btn btn-warning" href="{{URL::to('topics/edit/'.$topic->id)}}">Düzenle</a>
        <a  class="btn btn-danger" href="javascript:checkDelete('{{URL::to('topic')}}' , 'topic' , {{$topic->id}});">Delete</a>
        
    </td>
    
</tr>
@endforeach

</table>